<?php

/**
 * Trail bundles
 *
 * Trail bundles in folder trail
 *
 * PHP Version: 1.2.3
 *
 * @author Farina <noor.erfia@3fresources.com>
 */

use Trail\Models\Audit as Audit;

/**
 * Class Trail
 *
 * Class Trail in trail bundles
 *
 * @author Farina <noor.erfia@3fresources.com>
 */

class Trail
{

    /**
     * Function add audit trail that pass parameter into models
     *
     * @param string  $category the string to quote
     * @param int     $user     the integer to quote
     * @param varchar $logs     the varchar to quote
	 *
	 * @return parameter.
     */
	public static function log($category = 'General', $user = null, $logs = '')
	{
		return Audit::logTrail($category, $user, $logs);
	}
	
	/**
     * Function view list audit trail
	 *
	 * @return list.
     */
	public static function auditList()
	{
		return Audit::listTrail();
	}
	
	/**
     * Function search username audit trail
	 *
	 * @param varchar $input the varchar to quote
	 *
	 * @return list search username.
     */
	public static function search($input = null)
	{
		return Audit::trailSearchList($input);
	}
	
	/**
     * Function search date audit trail
	 *
	 * @param varchar $input the varchar to quote
	 *
	 * @return list search date.
     */
	public static function searchDate($input = null)
	{
		return Audit::trailSearchDateList($input);
	}
			
}
	
?>